package com.whmall.service.crm.enumeration;

/**
 * @author yangdong
 * @date 2021/11/1
 * @description 产品中心经营证件状态
 */
public enum ProductCenterBusinessCertificateStatusEnum {

    EXPIRED(-2, "已过期"),
    LACK(-1, "缺证件"),
    NOT_EXPIRED(0, "未过期"),
    NO_NEED(1, "不需要证件");

    public static ProductCenterBusinessCertificateStatusEnum fromValue(int value) {
        for (ProductCenterBusinessCertificateStatusEnum anEnum : values()) {
            if (anEnum.getValue() == value) {
                return anEnum;
            }
        }
        throw new UnsupportedOperationException("不支持的状态=" + value);
    }

    ProductCenterBusinessCertificateStatusEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }
    private final int value;

    private final String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

}
